package com.xbs.controller.selfdriving;

import java.io.IOException;
import java.util.List;

import javax.servlet.ServletException;
import javax.servlet.annotation.WebServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.xbs.controller.base.BaseServlet;
import com.xbs.entity.CarEntity;
import com.xbs.service.selfdriving.CarService;

@WebServlet("/selfdriving/xwselfDriving")
public class XwSelfDriving extends BaseServlet{

	@Override
	protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
		CarService carservice = new CarService();
		List<CarEntity> carlist = carservice.getCar();
		req.setAttribute("car", carlist);
		forward("/businessview/timeDriving");
	}
	
}
